﻿@{
    ViewBag.Title = "List";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div style="width: 1000px; margin: 0 auto; min-height: 350px;">
    <table class="table table-hover">
        <tbody>
            @if (ViewBag.ArticleCount > 1)
            {
                foreach (var item in ViewBag.ArticleList)
                {
                <tr>
                    <td style="color: #a4a4a4; width: 70%; text-align: left">

                        <a href="/W2_QJJK/NewsList?id=@item.ID&menuid=@item.MenuId&mainmenuid=@ViewBag.MainMenuId"><span class="glyphicon glyphicon-play-circle" style="font-size: 10px;"></span>&nbsp;&nbsp;@item.Name</a>&nbsp;&nbsp;
                    </td>
                    <td style="text-align: right; font-size: 14px; color: gray;">
                        @item.PublishTime
                    </td>
                </tr>
            }
        }
            else
            {
                <tr>
                    <td style="text-align: left;">
                        @(ViewBag.Article == null ? "" : Html.Raw(ViewBag.Article.Content))
                    </td>
                </tr>
        }
        </tbody>
    </table>
</div>